﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleOnlineSystem
{
    public partial class ViewGroupProduct : System.Web.UI.Page
    {
        public static DataTable dt;
        public int t;
        protected void Page_Load(object sender, EventArgs e)
        {
            int idcat =Convert.ToInt32( Request.QueryString["catID"].ToString());
            dt = DAL.DCollector.DBCollector.Instance.StoredProcedureSelectByColumns("tbl_Category", " * ", "selectbycolumns");
            DataView dv = dt.DefaultView;
            dv.RowFilter = "Category_ID2="+idcat;
            DataTable temp=dv.ToTable();
          
            rpt_group.DataSource = temp;
            rpt_group.DataBind();
        }
    }
}